<div id="page-wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header"><?php echo __('Location') ?></h1>
        </div>
        <div class="col-lg-12">
            <?php
            echo $this->Form->create('BoostCake', array(
                'inputDefaults' => array(
                    'div' => 'form-group',
                    'wrapInput' => false,
                    'class' => 'form-control',
                    'method' => 'post'
                ),
                'class' => 'well'
            ));
            //echo "<pre>";var_dump($categories);
            ?>
            <fieldset>
                <legend><?php echo __('Create Location') ?></legend>
                <?php
                echo $this->Form->input('Location.parent_id', array(
                    'label' => __('Location ID'),
                    'type' => 'select',
                    'options' => $selectlocation,
                ));
                ?>
                <?php
                echo $this->Form->input('Location.oder', array(
                    'label' => __('Oder'),
                    'type' => 'text'
                ));
                ?>
                <?php
                echo $this->Form->input('Locationlanguage.name', array(
                    'label' => __('Location Name'),
                    'type' => 'text'
                ));
                ?>
                <?php
                echo $this->Form->input('Locationlanguage.description', array(
                    'label' => __('Location Description'),
                    'row' => '5',
                    'class' => 'ckeditor',
                ));
                ?>
              
                <?php
                echo $this->Form->submit('Save', array(
                    'div' => 'form-group',
                    'class' => 'btn btn-default'
                ));
                ?>
            </fieldset>
            <?php echo $this->Form->end(); ?>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
</div>
<!-- /#page-wrapper -->

<?php echo $this->Html->script('ckeditor/ckeditor');  ?>